﻿using System;
using Microsoft.EntityFrameworkCore.Migrations;

#nullable disable

namespace Hotel.DAL.Migrations
{
    public partial class log2 : Migration
    {
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.CreateTable(
                name: "T_Discount_Member",
                columns: table => new
                {
                    Id = table.Column<int>(type: "int", nullable: false)
                        .Annotation("SqlServer:Identity", "1, 1"),
                    D_Id = table.Column<int>(type: "int", nullable: false),
                    M_Id = table.Column<int>(type: "int", nullable: false),
                    Send_Time = table.Column<DateTime>(type: "datetime2", nullable: false),
                    Use_Time = table.Column<DateTime>(type: "datetime2", nullable: false),
                    Use_State = table.Column<bool>(type: "bit", nullable: false),
                    D_Number = table.Column<int>(type: "int", nullable: false),
                    IsDeleted = table.Column<bool>(type: "bit", nullable: false)
                },
                constraints: table =>
                {
                    table.PrimaryKey("PK_T_Discount_Member", x => x.Id);
                });
        }

        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropTable(
                name: "T_Discount_Member");
        }
    }
}
